package com.shopoo.oauth.dto.cqe;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import com.shopoo.base.annotation.Phone;
import com.shopoo.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description:
 * @Auther: limy66
 * @Date: 2021/03/16/15:35
 */
@Data
public class UserUpdateCmd extends Command {

    @ApiModelProperty("用户ID")
    @NotEmpty(message = "用户ID不能为空")
    private String userId;

    @ApiModelProperty("用户名")
    @NotEmpty(message = "用户名不能为空")
    @Size(min = 1, max = 50, message = "用户名长度必须大于等于1个字符且小于等于50个字符")
    private String username;

    @ApiModelProperty("用户密码")
    private String password;

    @ApiModelProperty("性别")
    private Short sex;

    @ApiModelProperty("姓名")
    @Size(min = 1, max = 50, message = "姓名长度必须大于等于1个字符且小于等于50个字符")
    private String nickname;

    @ApiModelProperty("电话号码")
    @Phone
    private String phone;

    @ApiModelProperty("角色列表")
    private Long[] roleIds;
}
